package com.ruoyi.project.zerocarbon.mapper;

import com.ruoyi.project.zerocarbon.domain.DeclareMediaCoverage;

import java.util.List;

/**
 * 媒体报道情况Mapper接口
 * 
 * @author ruoyi
 * @date 2022-03-13
 */
public interface DeclareMediaCoverageMapper 
{
    /**
     * 查询媒体报道情况
     * 
     * @param id 媒体报道情况ID
     * @return 媒体报道情况
     */
    public DeclareMediaCoverage selectDeclareMediaCoverageById(Long id);
    public List<DeclareMediaCoverage> selectDeclareMediaCoverageByDeclarationId(Long declarationId);

    /**
     * 查询媒体报道情况列表
     * 
     * @param declareMediaCoverage 媒体报道情况
     * @return 媒体报道情况集合
     */
    public List<DeclareMediaCoverage> selectDeclareMediaCoverageList(DeclareMediaCoverage declareMediaCoverage);

    /**
     * 新增媒体报道情况
     * 
     * @param declareMediaCoverage 媒体报道情况
     * @return 结果
     */
    public int insertDeclareMediaCoverage(DeclareMediaCoverage declareMediaCoverage);

    /**
     * 修改媒体报道情况
     * 
     * @param declareMediaCoverage 媒体报道情况
     * @return 结果
     */
    public int updateDeclareMediaCoverage(DeclareMediaCoverage declareMediaCoverage);

    /**
     * 删除媒体报道情况
     * 
     * @param id 媒体报道情况ID
     * @return 结果
     */
    public int deleteDeclareMediaCoverageById(Long id);
    public int deleteDeclareMediaCoverageByDeclarationId(Long declarationId);

    /**
     * 批量删除媒体报道情况
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteDeclareMediaCoverageByIds(Long[] ids);
}
